package com.ymt.bpm.util;

/**
 * Created by Johnny on 2017/5/31.
 */
public class DbDialectUtil {

    public static String toDateFunc(String dialect, String dateStr) {
        StringBuilder sb = new StringBuilder();
        if ("mysql".equalsIgnoreCase(dialect)) {
            sb.append("str_to_date('")
                    .append(dateStr)
                    .append("', '%Y-%m-%d %h:%i:%s'");
        }
        return null;
    }

}
